package com.linkgap.cloud.service;

import com.linkgap.cloud.repo.ManagerRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ManagerService {
    @Autowired
    private ManagerRepo managerRepo;
    public Long queryManagerIdByManagerName(String managerName){
        if(managerName=="王欢"){
            System.out.println("走if逻辑");
            return null;
        }
        System.out.println("出if语句继续");
         Long managerId=managerRepo.findByName(managerName).getId();

         return managerId;


    };
}
